<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<script src="./react.min.js"></script>
<script src="./react-dom.min.js"></script>
<script src="./babel.min.js"></script>
</head>
<body>
<style type="text/css">
div.top{width:200px; height:20px; border:1px solid red;}
</style>
<div id="example"></div>

<script type="text/babel">
{/* var hello 就报错 */}
var Hello = React.createClass({
	render:function(){
		return <div className="div">你好！</div>;
	}
});
ReactDOM.render( 
	<Hello />,
	document.getElementById("example"),
);
</script>

</body>
</html>